//
//  NewFoundCell.m
//  YouthHostel
//
//  Created by administrator on 16/10/22.
//  Copyright © 2016年 Lorain mac pro. All rights reserved.
//

#import "NewFoundCell.h"
#import "Define.h"
@implementation NewFoundCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.contentImg = [[UIImageView alloc]init];
        
        self.titleImg = [[UIImageView alloc]init];
        self.titleImg.alpha = 0.4;
        
        self.lineLab = [[UILabel alloc]init];
        self.lineLab.backgroundColor = [UIColor whiteColor];
        
        self.lineLab1 = [[UILabel alloc]init];
        self.lineLab1.backgroundColor = [UIColor whiteColor];
        
        self.titleLab = [[UILabel alloc]init];
        self.titleLab.font = [UIFont systemFontOfSize:25];
        self.titleLab.textColor = [UIColor whiteColor];
        self.titleLab.textAlignment = NSTextAlignmentCenter;
        
        self.contentView.backgroundColor = [UIColor groupTableViewBackgroundColor];
        
        [self.contentView addSubview:_contentImg];
        [self.contentView addSubview:_titleImg];
        [self.contentView addSubview:_titleLab];
//        [self.contentView addSubview:_lineLab];
//        [self.contentView addSubview:_lineLab1];
        
        
    }
    
    
    
    
    return self;
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.contentImg.frame = CGRectMake(10, 10, WIDTH-20, 160);
    
    self.titleImg.frame = CGRectMake(WIDTH/2-20, 40, 40, 30);
    
    self.lineLab.frame = CGRectMake(WIDTH/2-80, 55, 50, 1);
    
    self.lineLab1.frame = CGRectMake(WIDTH/2+30, 55, 50, 1);

    self.titleLab.frame = CGRectMake(WIDTH/2-100, 70, 200, 80);
}



@end
